package com.zring.service.impl;

import com.zring.dao.m2.TeacherDao;
import com.zring.model.m1.User;
import com.zring.model.m2.Teacher;
import com.zring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements UserService {

    @Autowired
    private TeacherDao teacherDao;

    public int insertUser(User user) {
        return teacherDao.insertTeacher(new Teacher("t", 27));
    }
}
